const mutations = {
	// 退出登录
	loginOut(state, data){
		state.hasLogin = false;
		state.isLoading = false;
		state.userInfo ={};
		uni.removeStorage({
		    key: 'nqh_lm_token'
		});
	},
	// 修改登录状态
	setHasLogin(state, data){
		state.hasLogin = true;
	},
	// 修改 加载状态
	setIsLogin(state, data){
		state.isLoading =data;
	},
	// 存储用户信息
	setUserInfo(state, data){
		state.userInfo = data;
	}
}


export default mutations